package com.example.demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class TestController {
    @RequestMapping("/th")
    public String index( Model model ){
        String msg = "hello thymeleaf!";
        model.addAttribute("msg",msg);
        return "index"; } }